package com.xpgk.mvc.statistic.employeeRank;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.Record;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.xpgk.constant.ConstantSplitPage;
import com.xpgk.dto.RenderBean;
import com.xpgk.dto.SplitPage;
import com.xpgk.mvc.base.BaseController;
import com.xpgk.mvc.bcallVisit.BcallVisit;
import com.xpgk.mvc.bcallVisit.BcallVisitService;
import com.xpgk.mvc.bentryRegister.Customer;
import com.xpgk.mvc.bentryRegister.CustomerAgreement;
import com.xpgk.mvc.bentryRegister.CustomerDetail;
import com.xpgk.mvc.organization.Organization;
import com.xpgk.mvc.statistic.daySales.DaySalesXLS;

public class EmployeeRankController extends BaseController {
	
	private SemployeeRankService semployeeRankService;
	
	/*
	 * 跳转
	 */
	public void index(){
		setAttr("curOrgan", Organization.dao.findById(getCUserOrganIds()));
		render("employeeRank.html");
	}
	/*
	 * 员工信息查询
	 */
	public void queryEmployee(){
		String organIds = getPara("organIdsEmployee");
		String startdate = getPara("startdate");
		String enddate = getPara("enddate");
		List<Record> result = semployeeRankService.querySemployee(organIds,startdate,enddate);
		
		for(Record r : result){
			System.out.println(r);
		};
		renderJson(result);
	}
	
	
	
	
	
	/*
	 * 查询结果导出
	 */
//	public void excel(){
//		render(new ScallVisitXLS((List<Record>)splitPage2.getList(), "电话回访查询导出",search));
//	}
	
}
